package com.chiyi.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.chiyi.bean.TProduct;
import com.chiyi.mapper.TProductMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @date 2021/5/14 9:31
 */
@Service
@Slf4j
public class WebService {

    @Resource
    private TProductMapper tProductMapper;


    public List<TProduct> getAllProduct() {
        QueryWrapper qw = new QueryWrapper();
        List<TProduct> list = tProductMapper.selectList(qw);
        return list;
    }
}
